#! /usr/bin/env python
from ctypes import *

class HPLog:
    def __init__(self, so_name, conf):
        self.handler = CDLL(so_name)
        self.handler.init_hplog(conf)

    def set_log_level(self, log_level):
        self.handler.set_client_log_level(log_level)

    def tx_log(self, log_level,msg):
        self.handler.hplog_output(log_level,msg)


